﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="EditTestGroup.aspx.cs" Inherits="cognysClient.Admin.WebForm4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <div id="divMain" class="divMain" runat="server">

            <div id="divSearchTestGroup" class="divSearchTestGroup" runat="server">
                <h2 class="titlePage">Redigera Testgrupp</h2>
                <asp:Label ID="lblSearchTestGroup" runat="server" CssClass="lblEditTestGroup" Text="Sök Gruppnamn:"></asp:Label>
                <asp:DropDownList ID="ddlEditTestGroup" CssClass="ddlEditTestGroup" runat="server" OnSelectedIndexChanged="ddlEditTestGroup_SelectedIndexChanged" AutoPostBack="true" AppendDataBoundItems="true"></asp:DropDownList>
                <br/><br/>
                <asp:ValidationSummary ID="editTestgroupValidationSummary" runat="server"  
                         ValidationGroup="editTestgroup"/>
           </div>

            <div id="divEditTestGroup" class="divEditTestGroup" runat="server">
                <p class="pEdit" >Redigera:</p>
                <asp:Label ID="lblEditTestGroup" runat="server" CssClass="lblEditTestGroup" Text="Gruppnamn:"></asp:Label>            
                <asp:TextBox ID="tbEditTestGroup" runat="server" CssClass="tbxEditTestGroup"></asp:TextBox>
                <asp:Label ID="lblDescriptionEditTestGroup" runat="server" CssClass="lblEditTestGroup" Text="Beskrivning:"></asp:Label>
                <asp:TextBox ID="tbEditDescription" CssClass="tbEditDescription" TextMode="MultiLine" runat="server"></asp:TextBox>
                <asp:Button ID="btnEditTestGroup" runat="server" CssClass="btnEditTestGroup" Text="Redigera Grupp" OnClick="btnEditTestGroup_Click" ValidationGroup="editTestgroup" />
                <asp:Button ID="btnDeleteTestGroup" runat="server" CssClass="btnDeleteTestGroup" Text="Ta bort Grupp" OnClick="btnDeleteTestGroup_Click"/>
    

        </div>

    </div>
    
     <asp:RegularExpressionValidator id="RegularExpressionValidator2" runat="server" 
        ErrorMessage="Felaktigt gruppnamn" 
        ValidationExpression="^([\S\s]{1,50})$" 
        ControlToValidate="tbEditTestGroup" 
        ValidationGroup="editTestgroup"/>

    <asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" 
        ErrorMessage="Felaktig beskrivning" 
        ValidationExpression="^([\S\s]{1,500})$" 
        ControlToValidate="tbEditDescription" 
        ValidationGroup="editTestgroup"/>
    
    <asp:RequiredFieldValidator   
        ID="RequiredFieldValidator1"  
        runat="server"  
        ControlToValidate="tbEditTestGroup"  
        Text="*"
        ErrorMessage="Gruppnamn saknas" 
        ValidationGroup="editTestgroup"  />  
    <asp:RequiredFieldValidator   
        ID="RequiredFieldValidator2"  
        runat="server"  
        ControlToValidate="tbEditDescription"  
        Text="*"
        ErrorMessage="Beskrivning saknas" 
        ValidationGroup="editTestgroup"  />  
</asp:Content>
